import request from "@/utils/request";

/**
 * 获取错误码解决方案列表
 * @param params
 * @returns
 */
 function errorCodeList(data) {
  return request({
    url: '/management/machine.machine_error_code_solution/getList',
    method: 'post',
    data
  })
}
/**
 * 获取错误码解决方案列表
 * @param params
 * @returns
 */
function getFinderror(data) {
  return request({
    url: '/management/machine.machine_error_code_solution/getFind',
    method: 'post',
    data
  })
}
/**
 * 删除错误码解决方案
 * @param params
 * @returns
 */
function errorCodedel(data) {
    return request({
      url: '/management/machine.machine_error_code_solution/del',
      method: 'post',
      data
    })
  }
  /**
 * 添加错误码解决方案
 * @param params
 * @returns
 */
function errorCodeadd(data) {
    return request({
      url: '/management/machine.machine_error_code_solution/add',
      method: 'post',
      data
    })
  }
    /**
 * 修改错误码解决方案
 * @param params
 * @returns
 */
function errorCodeupdate(data) {
  return request({
    url: '/management/machine.machine_error_code_solution/update',
    method: 'post',
    data
  })
}
export{
    errorCodeList,
    errorCodedel,
    errorCodeadd,
    errorCodeupdate,
    getFinderror
}